<h1>Sponsors</h1>
<a href="<?php echo base_url("sponsors/ajout") ?>" class="btn">Ajouter</a></div>
<?php if ($sponsors != false): ?>
    <?php foreach ($sponsors as $sponsor): ?>
    <div style="float:left; border:1px solid lightgray;">
        <img src="<?php echo assetsUrl("img/sponsors/".$sponsor->logo) ?>" style="width: 150px; height:100px;" />
    </div>

    <div style="margin-left: 180px;">
        <div style="margin-bottom: 5px; color:gray; font-size: 20px;"><a href="<?php echo $sponsor->link ?>"><?php echo $sponsor->nom; ?></a></div>
        <div><i><?php echo $sponsor->description; ?></i></div>
        <div><a class="btn btn-sm" href="<?php echo base_url('sponsors/supprimer/' . $sponsor->id_sponsor) ?>">Supprimer</a></div>
    </div>

    <hr>
    <?php endforeach; ?>
<?php endif; ?>